package com.xteam.xnetworkdisk.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xteam.xnetworkdisk.sys.entity.FileEntity;
import com.xteam.xnetworkdisk.sys.entity.ShareEntity;
import com.xteam.xnetworkdisk.utils.R;

import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiajunjie
 * @since 2024-08-12
 */
public interface ShareService extends IService<ShareEntity> {

    Integer shareFileById(List<Integer> fileIds,String shareName);

    R getSharedFiles(String shareId);

    void cancelShared(List<Integer> shareIds);

    R getMyShared();

    R saveTo(List<Integer> fileIds,Integer folderId);

    void deleteShare(List<Integer> shareIds);
}
